package com.myblog.service.impl;

import com.myblog.mapper.Usermessagemapper;
import com.myblog.pojo.UserMessage;
import com.myblog.service.Usermessageservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Usermessageserviceimpl implements Usermessageservice {
    @Autowired
    private Usermessagemapper usermessagemapper;

    @Override
    public List<UserMessage> findwechat() {
        return usermessagemapper.find();
    }

    @Override
    public void insert(String openId,String content,String time) {
        usermessagemapper.insert(openId,content,time);
    }
}
